<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditOrderdetailTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditOrderdetailLabel_id}" for="id" />
                    <h:inputText id="id" value="#{orderdetailController.selected.id}" title="#{bundle.EditOrderdetailTitle_id}" required="true" requiredMessage="#{bundle.EditOrderdetailRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.EditOrderdetailLabel_foodPrice}" for="foodPrice" />
                    <h:inputText id="foodPrice" value="#{orderdetailController.selected.foodPrice}" title="#{bundle.EditOrderdetailTitle_foodPrice}" required="true" requiredMessage="#{bundle.EditOrderdetailRequiredMessage_foodPrice}"/>
                    <h:outputLabel value="#{bundle.EditOrderdetailLabel_count}" for="count" />
                    <h:inputText id="count" value="#{orderdetailController.selected.count}" title="#{bundle.EditOrderdetailTitle_count}" />
                    <h:outputLabel value="#{bundle.EditOrderdetailLabel_userOrderId}" for="userOrderId" />
                    <h:selectOneMenu id="userOrderId" value="#{orderdetailController.selected.userOrderId}" title="#{bundle.EditOrderdetailTitle_userOrderId}" required="true" requiredMessage="#{bundle.EditOrderdetailRequiredMessage_userOrderId}">
                        <f:selectItems value="#{userorderController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditOrderdetailLabel_extraPriceId}" for="extraPriceId" />
                    <h:selectOneMenu id="extraPriceId" value="#{orderdetailController.selected.extraPriceId}" title="#{bundle.EditOrderdetailTitle_extraPriceId}" required="true" requiredMessage="#{bundle.EditOrderdetailRequiredMessage_extraPriceId}">
                        <f:selectItems value="#{extrapriceController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditOrderdetailLabel_foodId}" for="foodId" />
                    <h:selectOneMenu id="foodId" value="#{orderdetailController.selected.foodId}" title="#{bundle.EditOrderdetailTitle_foodId}" required="true" requiredMessage="#{bundle.EditOrderdetailRequiredMessage_foodId}">
                        <f:selectItems value="#{foodController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{orderdetailController.update}" value="#{bundle.EditOrderdetailSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditOrderdetailViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{orderdetailController.prepareList}" value="#{bundle.EditOrderdetailShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditOrderdetailIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
